export interface onClassificationObject {
  // id: 1
  // name: "图书、音像、电子书刊"
  id: number;
  name: string;
}

export type onClassificationArray = onClassificationObject[];

// getAttributesList

export interface attrValueList {
  id: number;
  valueName: string;
  attrId: string;
}
export type attrValueListArry = attrValueList[];

export interface getAttributesList {
  id: number;
  attrName: string;
  categoryId: number;
  categoryLevel: number;
  attrValueList: getAttributesList;
}

export type getAttributesListArry = getAttributesList[];

export interface CategoryItem {
  id: number;
  name: string;
}

export type CategoryList = CategoryItem[];

export interface tableDataobj {
  attrId: number;
  valueName: string;
}

// 修改请求的类型限制  开始
export interface attrValueListobj {
  isEdit?: boolean;
  attrId?: number;
  id?: number;
  valueName: string;
}

export type attrValueListts = attrValueListobj[];

export interface tableDataoArr {
  attrName: string;
  attrValueList: attrValueListts;
  categoryId: number;
  categoryLevel: number;
  id: number;
}
// 修改请求的类型限制  结束

// 添加请求的类型限制  开始
export interface addattrValueListobj {
  valueName: string;
}
export type addattrValueListts = addattrValueListobj[];

export interface addtableDataoArr {
  attrName: string;
  attrValueList: attrValueListts;
  categoryId: number;
  categoryLevel: number;
}
// 添加请求的类型限制  结束

// export type onClassificationArray = onClassificationObject[]

// {
//   "id": 37,
//     "attrName": "分类",
//       "categoryId": 1,
//         "categoryLevel": 3,
//           "attrValueList": [
//             {
//               "id": 34,
//               "valueName": "JavaScript",
//               "attrId": 37
//             },
//             {
//               "id": 33,
//               "valueName": "C#",
//               "attrId": 37
//             },
//             {
//               "id": 32,
//               "valueName": "Java",
//               "attrId": 37
//             }
//           ]
// },
